package com.yy.util.common;

import android.content.Context;

import java.io.IOException;
import java.util.Properties;

/**
 * Created by Administrator on 2015/6/11.
 */
public class ReadProperties {

    public static String getProperties(Context context, String fileName, String key) {
        final Properties properties = new Properties();
        try {
            properties.load(context.getAssets().open(fileName));
        } catch (IOException e) {
            e.printStackTrace();
        }
        return properties.getProperty(key, "null");
    }
}
